package com.ds.dalgen.generator.domain;

import org.apache.commons.lang.StringUtils;

public class Operation {

	public static final String SELECT = "select";
	public static final String INSERT = "insert";
	public static final String UPDATE = "update";
	public static final String DELETE = "delete";

	private String id;
	private String type;
	private String sql;
	private Boolean paging;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getSql() {
		return sql;
	}

	public void setSql(String sql) {
		String str = new String(sql);
		str = StringUtils.replace(str, "\n", "");
		str = StringUtils.replace(str, "\t", "");
		this.sql = str;
	}

	public Boolean getPaging() {
		return paging;
	}

	public void setPaging(Boolean paging) {
		this.paging = paging;
	}

}
